package com.j.lemon.learn.fastjson;

import java.math.BigDecimal;

/**
 * @Author lijunjun
 * @Date 2020-07-13 16:55
 * @Description
 */
class Store {
    private String name;
    private Fruit fruit;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Fruit getFruit() {
        return fruit;
    }

    public void setFruit(Fruit fruit) {
        this.fruit = fruit;
    }
}

interface Fruit {
}

class Apple implements Fruit {
    private BigDecimal price;

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}

